<div class="x-body">
<?php if ($info): ?>
    <blockquote class="layui-elem-quote">{$info}</blockquote>
<?php else: ?>
    <table class="layui-table">
        <thead>
            <tr>
                <th>
                    ID
                </th>
                <th>
                    类型
                </th>
                <th>
                    内容
                </th>
                <th>
                    用户名
                </th>
                <th>
                    客户端IP
                </th>
                <th>
                    时间
                </th>
                <th>
                    操作
                </th>
            </tr>
        </thead>
        <tbody id="x-link">
        <?php foreach ($data as $v): ?>
            <tr>
                <td>
                    {$v['id']}
                </td>
                <td>
                <?php if ($v['type'] == 1) { ?>
                    访问
                <?php } elseif ($v['type'] == 2) { ?>
                    增加
                <?php } elseif ($v['type'] == 3) { ?>
                    修改
                <?php } elseif ($v['type'] == 4) { ?>
                    删除
                <?php } ?>
                </td>
                <td>
                    <?php if ($v['more'] != null): ?>
                        <u style="cursor:pointer" onclick="member_show('更多内容','{:U('admin/system/log_more',array('id'=>$v['id']))}','750','400')">
                                {$v['content']}
                        </u>
                    <?php else: ?>
                        {$v['content']}
                    <?php endif ?>
                </td>
                <td>
                    {$v['aname']}
                </td>
                <td >
                    {$v['ip']}
                </td>
                <td >
                    {:timeFormat($v['time'])}
                </td>
                <td class="td-manage">
                    <a title="删除" href="javascript:;" onclick="log_del(this,'{$v['id']}')" 
                    style="text-decoration:none">
                        <i class="layui-icon">&#xe640;</i>
                    </a>
                </td>
            </tr>
        <?php endforeach ?>
        </tbody>
    </table>
    <script type="text/javascript">
        /*查看更多详细内容*/
        function member_show(title,url,w,h){
            x_admin_show(title,url,w,h);
        }
    </script>
<?php endif ?>
</div>
